package com.example.android.snake;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class IndexActivity extends Activity
{
	private Button help;
	private Button enterGame;
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);

		setContentView(R.layout.index_layout);
		
		help = (Button)findViewById(R.id.help);
		enterGame = (Button)findViewById(R.id.game);
		help.setOnClickListener(new OnClickListener()
		{
			public void onClick(View v)
			{
				Intent intent = new Intent();
				intent.setClass(IndexActivity.this, HelpActivity.class);
				startActivity(intent);
			}
		});

		enterGame.setOnClickListener(new OnClickListener()
		{
			public void onClick(View v)
			{
				Intent intent = new Intent();
				intent.setClass(IndexActivity.this, Snake.class);
				startActivity(intent);
			}
		});
		
	}

}
